<template>
  <div class="home" style="text-align: center">
    <img src="../assets/logo.png" alt="logo" />
    <h1>欢迎来到在线秒杀系统</h1>
    <el-row>
      <el-button type="primary" round  @click="goToRegister">注册</el-button>
      <el-button type="primary" round @click="goToLogin">登录</el-button>
    </el-row>
  </div>
</template>

<script>
import Register from "@/views/Register.vue";
import Login from "@/views/Login.vue";

export default {
  name: "Home",
  methods: {
  goToRegister() {
    this.$router.push('/register');
  },
  goToLogin() {
    this.$router.push('/login');
  }
},
};
</script>

<style scoped>
/* 添加样式 */

</style>
